﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace FFWorker
{
    public class ActionBaseClass
    {
        protected String ActionId;
        protected bool IsActive;
        protected GroupBox GUIGroupBox;
        protected DataGridView GUIOutWin;

        public ActionBaseClass(GroupBox GUIBox, DataGridView GUIOutWindow)
        {
            GUIGroupBox = GUIBox;

            GUIOutWin = GUIOutWindow;
        }

        public void Activation()
        {
            IsActive = true;

            GUIGroupBox.Visible = true;

            GUIGroupBox.BringToFront();

            GUIGroupBox.Refresh();
        }

        public void Deactivation()
        {
            IsActive = false;

            GUIGroupBox.Visible = false;
        }
    }
}
